package com.shteo.crmd.config.app;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Akuma on 16/9/29.
 */
@EnableConfigServer
@Configuration
@EnableAutoConfiguration
@ComponentScan("com.shteo.crmd.config")
public class CRMConfigApp implements CommandLineRunner{

    public static void main(String[] args) throws Exception{
        SpringApplication app = new SpringApplication(CRMConfigApp.class);
        app.run(args);
    }

    //程序首次启动调用
    public void run(String... strings) throws Exception {
        System.out.println("CRM Server Boot Successfully");
    }

}
